#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	int count = 0;
	for (n > 0; n <= 100; n++)
	{
		if (n / 10 == 9 || n % 10 == 9)//对每个数取模10是求个位是否为9，对每个数除10是求十位是否为9
		{
			count++;
			printf("%d \n", n);
		}
	}
	printf("1到100整数之间数字9出现了%d次\n", count);
	return 0;
}